import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "Activity/"
import { getBaseUrl } from "@/utils/appUrls.js"
//获得累计活动列表(根据用户)
export function GetUserAddupActivityList(data) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetUserAddupActivityList",
        data,
    })
}
//获得用户已参与累计活动列表
export function GetUserAddupActivityLogList(data) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetUserAddupActivityLogList",
        data,
    })
}
//获得累计活动主商品信息
export function GetAddupActivityProductInfo(data) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetAddupActivityProductInfo",
        data,
    })
}
//参与累计活动
export function CreateAddupActivityAction(data) {
    return http.post({
        url: getBaseUrl() + serviceName + "CreateAddupActivityAction",
        data,
    })
}
//获取服务器当前时间
export function GetNowTime(data) {
    return http.get({
        url: getBaseUrl() + serviceName + "GetNowTime",
        data,
    })
}
//获取活动详情
export function GetActivitiesInfo(path) {
    return http.get({
        url: getBaseUrl() + serviceName + "GetActivitiesInfo" + path,
    })
}
//获取活动分页
export function GetActivityPage(data) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetActivityPage",
        data,
    })
}
//获取活动商品列表
export function GetActivityProductPage(data) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetActivityProductPage",
        data,
    })
}
